[fix] do not allow rank=null