Avoid to==nil and trigger 1072