Fixed sorting preference bug