Fix redundant check.