Fixed the dismiss gesture flash.