Max value setting was missing