fix dodgy find/replace