fixed some warings