Profile toggle bug fix