Fix save of profile