Fixxed bug

Bug in saving profile