Three fishermen were rescued Tuesday night after the U.S. Coast Guard found their boat capsized near Coos Bay, Oregon.

The 38-foot Pacific Miner was spotted by an aircrew Tuesday evening. Shortly after receiving the report, the Coast Guard received a transmission from the boat’s radio-beacon transmission, which automatically activates when it is submerged in water, according to a statement from the Coast Guard.

Two crews from the nearby Coast Guard station began to search for the men. The men were rescued from inside the boat by a local fire department, according to a tweet around 8:45 p.m. from the Coast Guard. They were “reported to be okay but were cold,” according to the tweet.

The Coast Guard shared a video of the rescue posted by Basin Tackle, a recreational sporting-goods store located in the Charleston Marina.

The Coos Bay is currently restricted to recreational vessels that are 40 feet and below, according to the Coast Guard. The conditions in the area include 8 to 12-foot breaking waves with low winds and four miles of visibility.

The vessel reportedly had about 300 crab on board.