correctly handle blank patterns (stuff that ends up with offset 0)