Fixed bugs in sr830