Fixed profile creation error