stream type check fixed