fixed return of array categories