Fix the write cmd is 2 not 3