Fix config.xml, fix share method

I made some changes. There was an error in the config.xml that was updated. And there were some problems in the share method