Fixed animation on switch to off