Update .replace call to use the refactored style so that design saving works
fixes #576