Fixed autorectify insertion bug