Fixed bugs in TSiRes