fix path offset when extended_flag == 1