Fix for the issue related to update of an entity.
Merge pull request #31 from shantanud/2.2

Fix for the issue related to update of an entity.