Fixed distribute_data for global_shape == ()

8 jobs for master in 3 minutes and 22 seconds