fix strange problems (workaround method)

i submit a patch for your problem ,
could you try it ?

Thanks