Fixing minor errors