Fixed max value error