fixed an old never seen logical error
Merge pull request #3 from pioneerskies/fixlogicerror

fixed an old never seen logical error