Fixed some error in Api DAO