fixed a stupid logic thing