fix ticket toggle bug