Fix modal result warning
Fix warnings