fix input filter