fix for unbound variable