Use id when reading preferences instead of index