fix an issue with saving collapsable states
Merge pull request #3016 from FinalAngel/develop

fix an issue with saving collapsable states