fix in active record class