Removed useless code
Fix on profile creation