Fixed passing of sub-array as function argument