Profile creation bug fix