Fixed bug in offset mapper.