Fix variable assignment and use message