Fix a switch db problem.