Fix offset with last.

Closes #7441