small logical error
Merge pull request #258 from ThePyrotechnic/Dev

small logical error