fix a input propagation bug