fixing getStoredProfile