fix error when use lib is used dynamic variables