fix warnings during compiling