Fix BS problem of gfanlib handling