Updated so that the profile will be updated correctly