Bugfix for CProfiles