fix toxml breaking bug which didnt matter on my system for some reason