Fix handling of min or max when set to 0; closes #33