fixed small bug regarding anonymous vs non-anonymous variables