fix of a bug reported by Rob Latham at ANL