fix some compiler warning