fix inputs problem