fixed a minor NULL/zero fault.