some minor fix to make preferences functional