fix when input come early than Connected event