Fixes directive fails due to replace