fixed bug in rerouting after user profile edit