fix error in visible_to method