Fixed potential sync bug in input.