fixed some bugs, didn't delete page table this time