Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

MONTGOMERY, Ala. — A dozen inmates escaped from an Alabama jail by using peanut butter to change the numbers above a door and trick a new employee into opening another door that led outside, a sheriff said Monday.

The inmates changed the number above a cell to the number that identified the door leading outside the jail. So, when an inmate asked a young, inexperienced jailer to let him into his cell, the jailer was fooled into opening the outside door instead.

The group then fled, throwing off their orange uniforms and using blankets to climb over a fence topped with razor wire on Sunday evening.

"It may sound crazy, but these people are crazy like a fox," Walker County Sheriff James Underwood said at a news conference in Jasper.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

Inmates "scheme all the time to con us and our employees at the jail," Underwood added. "You have to stay on your toes. This is one time we slipped up. I'm not going to make any excuses."

The sheriff said the inmates "went off in every direction," but all but one were captured within eight hours. The 11 were arrested without violence, and the only person seriously hurt was an inmate who sliced his thumb climbing over the fence, the sheriff said.

Tuesday evening, the sheriff’s office said in an updated statement on Facebook that the 12th and last remaining inmate had been taken into custody. Underwood said the inmate was arrested in Tequesta, Florida.

Related: Dozen Inmates Escape Alabama Jail Overnight

Brady Andrew Kilpatrick, 24, who had been jailed on charges of possessing marijuana and drug paraphernalia, was captured in a joint effort by the Martin County Sheriff's Office, the Palm Beach County sheriff’s tactical unit, and an FBI fugitive task force at around 7 p.m., the Martin County Sheriff’s Office said.

Underwood told NBC News in a phone interview Tuesday that two other people, who he said is a friend of Kilpatrick's and that man’s girlfriend, were arrested and will be charged with aiding and abetting. Brady is in custody in Florida pending extradition, Underwood said. He predicted there will be other arrests in Walker County over the escape.

"I am certainly glad this ordeal is over," Underwood said.

The fugitives were between 18 and 30, facing charges ranging from disorderly conduct to attempted murder.

Underwood estimated that the inmates had cleared the barbed wire fence in less than 10 minutes.

"They took advantage of a young fellow that hadn't been here very long" and who had to monitor 150 inmates at a time, the sheriff said. They apparently saved peanut butter from food regularly served at the jail.

"They love peanut butter sandwiches," the sheriff said.