Fix sample insertion