Fixed a bug in "add -global_input"