fixed shard3.js to be careful when writing directly to one shard #1045