Fixed bug that user profile cannot be updated