fixed typo on  variable reference