Fixed function expression bad unparsing caused by bad replace