Fix logic error in the array type