Correct setBufferSizes to use the parameter sizes.