Fixed "must be greater than" logic