Fix for entities when loading XML doc