fixed apperance when dismissing