Fix wrong null test