fixing bug in management of profile menues