Hi,
Instead of just bending over and giving the child a hug to make him feel better, try getting down on the floor this puts you at his level without picking him up, from this position you can either have him sitting down beside you ,infront, whatever, as well as getting his attention focused on floor toys or start singing a song, using ur hands too .
good luck