Check valid bug fixed