Appium 1.6.4 source.indexOf error

Hi
I was using appium 1.6.0 , then today I’ve updated my appium to 1.6.4-beta(using the same source code on our side ). But now after application is opened. I saw these error lines writes infinitely after executing this line of code.

String xmlStr = driver.getPageSource();

@#[line:0,col:undefined]
[xmldom error]	element parse error: TypeError: source.indexOf is not a function 

Does anyone know any solution to that?

Thanks