Set initial visibility properly.