Fixed bug for update method generation, removed object name