Fix the xml timeout bug!

Ready to merge!

See #116.