fix bug on families management

Fixed https://forge.indepnet.net/issues/4986