fixed a dumb variable issue