Fixed the use of a variable