fixes some bugs in user profile activities