fix function Share bug