Prevents bad animations