fix input = 0 bug when #if