fixed update bug in profile