fixed scan chain to work in old CMS2.h/cc