Fix class toggle on toolbar animations