fix torag active record