fix HABTM w/out primary key errors on destruction