Fix preferences count