Fix Wrong buffer use.