fix ribbon-won't-hide-correctly bug