Fix glitch where the ImageButton does not hide.