Fixing a habtm