fix approximate histogram serde to not change buffer limit