Fix wrong if check