Min and max range returning TRUE when min or max parameter is not set