By far he’s not the first judge to get in trouble on social media, but Judge Bill McLeod of Texas certainly pulled a number on himself by resigning from his bench by accident through a Facebook post.

When McLeod, judge of Harris County’s Civil Court-at-Law No. 4, wrote about his aspirations to run someday for the Texas Supreme Court, he apparently did not know the Texas Constitution states that judges who announce they’re running for another office effectively have resigned from their current position.