bug fix - array type check