fixed ch < 0