Fix undefined variable mistake

here it is