Fixed the update by id method