Fixed a problem with a black screen

A black screen appeared when button cancel was pressed at createevent