fixed the bug associated with the initial implementation of the profile modification feature