fixed bug in profiles