fix bug in isVisible setting instead of getting