clear internal buffer on complete message, fixes max. message size issue