Fixing minor errors in sharded tables