Solved input bug