fix offset for headerless files