Modal animation fix