Fixed critical bugs in the MMU implementation