I have some screenshots below, but it's tough for me to figure out what's going on. This is two cases, and in both cases the out-of-sync and error messages were thrown by adding an array, and then appending a value. The problem might have occurred just by adding an array.
Case 1
Case 2