fix deploy when revision not found