Fixed 'Bug 24429 - Incorrect folding'