bug fixes in P190._write_p190