Fixed a bug, should have been if zero.