Fixed an issue to make sure the panel is registered correctly when adding folders.