[fix] Diagnostic works with 1.x
[fix] Diagnostic works with 1.x