fix a chekc bug