more fixes for arrays