changed a line regarding the msg parameter passed in through the even listener.