Fixed player notification issue due to the logic with an internal
mutable state.