input_generator: fix a bug in synchronized initialized function