Fixed bug in ProfileController.