Making out-of-bounds rank work.