fixes minor errors