Fix look ahead bug