fix active record associations