Fix preferences activity