fixing 'unknown attribute ranking' issue