Fixes bug in publishCreate