Fix error in DAO