fix some warnings when compiling