logic fail.
Merge pull request #302 from paulej72/master

logic fail.