Fixed bugs in ImportPublish procedures