resolve input bug