fixed some warnings detected by CI