fix error handling for prof_perm page