fix scope error in centraldb