Fix crash with IC2

Some code just doesn't like 0s... Also I don't think it REALLY matters that it's exactly 0.
Merge pull request #344 from viliml/patch-1

Fix crash with IC2