Fix write issue with 1.9.2