fix stream_wrapper_register()