Fixed Profile function to load profile