Fix preferences error