Fixed error message on incompatible xml types