fix ReferenceError: userIdShouldReceiveMsg is not defined