fix playing IllegalStateException