Fixed issue which caused the darkened section of the screen to remain sometimes after the modal view was dismissed.