solve warning bugs