Fix

Fixed write