fix pre code offset