fixed a bug with the finalize button that allowed matches to be finalized multiple times