fixed error where the model wasnt adding on correct state