bug fix in optical finder

bug fix in how the xml was being written