minor errors fix