Fix bugs at ProfileController