minor fix on ag-ranking directive