fixed some variable warnings