fix append state