fixed upvar references by adding default 1, and removed conflicting reference.