Should fix our double deployment issue

I haven't tested it but it ought to work.