Fixed the issue with positive offsets