fix some warnings messages