Fix calculation of max size by max-size/max-fraction