Fixed a minor bug with select all / select none for ranks.