fixed bug in creation of new profiles