Don't set frame not visible and then visible again, just do it later