remove invalid part of deploy condition