fix warning bug