Fix passing visibility through for mac.