Fixed incorrect folding