fixing deployment policy to use applicationId