Finally found the bug with publishing