there is a bug where animation occurs twice