fixed compiling warnings.