fix for habtm