Fixed ldi writer