SACRAMENTO, Calif. (AP) — A Republican lawmaker accidentally cast his party’s first vote for the California budget in years because he was distracted by Facebook.

Assemblyman Scott Wilk was the sole Republican to vote for California’s record $117.5 billion spending plan Monday.

The Santa Clarita lawmaker later clarified he accidentally supported the bill in the Capitol while opposing it on Facebook. He posted on Twitter “My wife is right — I can’t multitask!”

My wife is right – I can’t multitask! Accidentally voted for Budget while Facebooking against AB 93. The perils of social media #CABudget — Scott Wilk (@ScottWilkCA) June 15, 2015

California’s budget is being negotiated between Gov. Jerry Brown and Democratic legislative leaders. They have yet to reach a final deal.

Wilk’s blunder won’t show up on the official legislative record because the Assembly allows lawmakers to change their official votes.

He did so after session ended, receiving applause from fellow Republicans and boos from Democrats.

Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.