Further bug fix to global array declaration