Fix preferences rendering