fix bug with updating master profile