fix typo in visibilityState