fixed wrong log in input bug