Fix custom replacement.