When we make a positive contribution we usually want to get recognition for it. We may not always say it in words but there is always an expectation that others should recognize our contribution.
We need to make sure that we enjoy whatever we do. Since the task itself becomes enjoyable for us, we don't anymore expect recognition. The more we become free from expectations the more we get love from others and recognition too.
The one who sacrifices name and fame is the one who gets recognition.