fix bug where bubble merge maxLength was set to 0