Fixed references in dao-factory.