Negative offsets, and minimum positions were not calculated correctly