fixed bugs to sync folding information