Fixes Pending transactions bug