Fix replacement pattern