fix the write length issue