Deploy: fix issue with condition