Multidimentional arrays small fixes