Fix create profile script.