fixed update bug when ObjectId wasn't recognized