Gzbuffer bugfix

Minor adjustments for the gzbuffer bugfix