Fixed rack deletion bug