fix a Call to a member function xpath() on a non-object
Clean fields values