Fixes publish bug