fix multiple 0 inputs and back