fix portable lib