Fix the dismiss problem