bug fix for ranks