Fixed bug in section offsets