Fixed getMaximum to getActualMaximum