Fixed copy of current tab, and loding fo shared lib issue