fixed minor bugs in a few variable references