bugfix : writable object write length error