Fix smart folder close.