fixed a couple of simple temp var errors