fix for case of array