Deal with undefined offsets