fix the user update bug