fix QString not transformed to str error