Visibility gets ignored on has_many relationship (issue #995)