Fix a bug about a checking