MakeSpace function was deleting the wrong data.

Error was found by students at Tonji University.