fixed a bug where deploying with deploy:cold first results in a strange rollback
loop.