No. You did well as a human. Just don't expect people to reciprocate whenever you help. Your credit is installed somewhere in another dimension, not in the person you helped. On the other hand, the person you helped is not unaware of your contribution. He just thinks that you are trying to redeem your credit from him. His big ego and small mindedness will never allow that.
There is another type of person whom you should also beware if you help - a person who is jealous of you. A person who is jealous of you will hate you even more after he has received help from you.
If you have been of great help to someone and still want to keep the relationship with him, stay away from him. When the seed of gratitude finally blossoms in his conscience, he will come looking for you.