Clean up code and fix typo.
Do not collapse user if no node retrieve
Keep the smart folder expanded.