Fix a bug

Fix a bug for inputhelper