Fixed a show/hide bug.