fix the bug with the method "transaction.commitAllowingStateLoss();"