Messagehandler syntax error fix