usercanwritemessage fix