fixed bug with array types