fix case where animation does not start in certain cases