Fix SDK writing.