fixed null cv issue but why warning messages?