fixed some compiler warning