fix deploy resource