fixed some compiler errors.