Fixing a off-by-one error in the new border clearing code.