Fix profile viewing and updating profiles