Fixed write/read when in 'AI' mode