Fix a bug in common controller.