fix error caused by find/replace while fixing issue #369