Slight fix to WRITE

Should work now.