Fix replacement in edit view template