Fix offset checking.