fix #392. Different columns in different shards returns invalid results