Fixed rescaling of maxr