small fix for preferences