Fixes preferences