fixed all errors in mmu code