fixes ClassShardingSessionProxy bug (wont pass in the block with search params)