Fixed publish bug