Fix select stream problem