[fix] avoid the case where lookahead is None