profile controller fixes