fixing reference
allow reference schema to array