wrong returned id value