Changing and fixing bugs regarding different xml2js parser