Fix bugs in install_post