fixed unbound var