Fix wrong flash messages in profile views, fixes #660