fixed uninstall, permalink and post removal bug;