A note on groups with separable finitely generated subgroups