Fix video hiding for Safari