fixing a bug at populating stream definition map