Fix bug where slaves processes had incorrect global array sizes