fix some warnings in the hole project