fix comparison with 0