Fixed 'require' for publish