fixed some input bug, sometimes it can run well