fixed the reference frame offset