Fix to zero checking for immutable types