Bugfix for refreshing empty arrays