fixed typo
changed the stream wrapper registration