fix gstream wait bug for file and data