Fixed error with variable