Fixed Orientation Issues for dismiss