fix already-deployed check