first fix to debug read with correct write