fixed problem with unknown variable