Fixed removing ranks