fixed error with unknown variable