fixed a couple of quick bugs