fixed update bug