Fix create profile issue