little variable not defined bug