Fights reportedly broke out near a Bank of America ATM in Texas after the machine kept spitting out $100 bills.

A long line of cars was also seen outside the ATM as people scrambled to get their turn at grabbing a wad of cash.

Authorities said the machine was giving customer $100 bills instead of $10 bills.

A long line of cars (pictured) was also seen outside the Bank of America ATM as people scrambled to get their turn at grabbing a wad of cash

Authorities said the machine was giving customer $100 bills instead of $10 bills

A customer apparently went to the Bank of America ATM near FM 1960 around 11pm Sunday night to withdraw cash, according to KPRC 2.

But instead of getting a $10 bill, the machine spit out a $100.

The man then posted about the incident on social media, causing a crowd of people to rush over for the free extra cash.

According to the station, a few people fought while waiting in line.

Police were eventually alerted to the incident and swarmed the area.

The ATM was shut down and guarded by the officers until the glitch was worked out.

Fights also broke out near the ATM as crowds of people gathered around the machine (pictured, a group in line to make withdrawals)

A bank statement shows that a vendor incorrectly loaded $100 bills in place of $10 bills into the ATM

Some Harris County sheriff's deputies protected the outdoor ATM after Sunday night's incident and notified Bank of America.

A bank statement shows that a vendor incorrectly loaded $100 bills in place of $10 bills into the ATM.

Bank of America also said in a statement that customers will be able to keep the additional dispensed money.

Officials with North Carolina-based Bank of America didn't say how much cash was wrongly dispensed.