fix for corrupted pending transaction problem