corrected bad check that was allowing code to continue when tx not started