close #836 change data-position of states after deleting the state