Remove the max value from everywhere, use -1 instead