Fixed bug where publish modal was not showing up.