Why does pressing the cancel button == success?