fix data write on 64 bits arch