Fix reference to  variable