fix maxBuffer option