Minor bug fix with visibility.