Refractor codes - fixed edit case, partial vital