Fix bug where deltas became ranks

Thanks @jegonzal and @rxin