Fix null preferences