Setting _deployed to false when changes reaches 0