Bugfix in offset calculation