fixed a crash with loading animations