Fixes an array being switched