Cleaning up preferences