Fix error in synccontroller
remove unused use
remove dead code