fix a bug which causes trigger gameRule twice