Fix to be able to specify schema for refer-to