Apple fixed a FaceTime bug on Thursday that allowed people to eavesdrop and also said it will pay a 14-year-old high school student for reporting the problem.

The bug was related to Apple’s group FaceTime feature. It allowed a caller in a group call to hear audio from another person, whether or not that person accepted or rejected the call.

The bug affected iPhones, iPads and Macs. Apple released a fix for the problem Thursday, according to CNN Business. Users should install it immediately.

The fix came nine days after videos of the problem in action went viral on social media, CNN said. In some cases, the bug could also show live video of another person if they pressed a volume button to dismiss a FaceTime call.

Grant Thompson, a freshman at Catalina Foothills High School in Tucson, Arizona, found the bug a little over two weeks ago during a chat with friends while playing the video game “Fortnite,” according to The Wall Street Journal. His mother spent a week trying to notify Apple of the flaw.

Apple said it plans to pay the Thompson family and make a gift toward Grant's education. The company wouldn't say how much it will pay, the Journal said.

Apple also credited Daven Morris, a 27-year-old software developer from Texas, with reporting the issue, according to the Journal. He reported the problem Jan. 27, several days after the Thompsons.

Apple has a "bug bounty" program that in some cases can pay up to hundreds of thousands of dollars to researchers reporting bugs, according to the Journal.

Apple deemed the flaw so serious that it disabled the group FaceTime feature while it worked on a fix, according to the BBC. Grant’s mother sent several emails and other messages to Apple about the vulnerability earlier in January, but initially got no response.

The company later apologized for the problem, the Journal said.

Contact Kevin Tampone anytime: Email | Twitter | Facebook | 315-282-8598