fix ranktags problem better