correct some warnings