bugfix
partial max_rank for npy vectors