 He was cursed that till the skull is not full of food or grains, it will stick to his hands.Shiva went everywhere and asked for food but the skull was never full.So he finally went to this temple and Annapoorna filled the skull with grains and reversed Shiva’s curse.