fixed messagebox cancelling