fix create share library error