Fixed issue where slugs are rewritten on edit.