added families
fix crash when closing the game