fixed animation by adding delay