Updated dll, fixes writing bug