Fixed undefined offsets