fix a bug in player effect