Fix another bug
Merge pull request #1216 from jpeg729/bugfix

Fix another bug