Fix the replacements for the apache models.