lookahead spout emit bug fix