Fixed write format.