Fixed update and delete by id