Fix issue with dismiss.