fixed warning bug