Committing before removing functions from GameObject