bugfixes for NPE on ranked property