"Fixed" Memory Management

There is a Problem when checking if the space has been occupied