fixed bug input stuck