Fix a bug that command names are shared in all handlers