fix phase offsets for sequence extraction