fixed input bug

Fixed a problem with the input xml reader