Fixing bug with XML serialization.