fixed the problem with the serialization of the enum inside the Profile