fixed some minor errors