fixed xml writer problem for booleans