fixed some warns