fix input process