fixed bug #494
Merge pull request #537 from ClydeByrdIII/master

fixed bug #494