fix condition for deployment