fix third input problem