Fixed profile creation parameter names

Changed some parameter names in the profile creation code so that the records are stored correctly.