fixed some methods to dirty check the model