Fixed compilation issue in memebuffer