Fixed bug in read "new" and old .det files. Fix missing init of