fix sharding line assignment bug