Fixed compiling error - undeclared variable...