fixed #576 misalignment of new appended state
Merge pull request #577 from dadaa/576

fixed #576 misalignment of new appended state