fix problem for portable lib 111, 259