bugfixes
close page/free memory when dropping an undirty page.