fix issue with animations toggle disappearing