fix when min, max is '0', it will not assigned since our short writing style in check code