fixed preamble bug