Fixed call to hasChanged