Fixed min/max validation issue