Fix error when no family is given