fix bug
Better calculation for preferences