Fix variable name and message error