fixed infinite recursion DAO Factory bug