Cryptocurrency Oops

I made a mistake and sold a bunch of bitcoin last year, then I bought it back (it cost me more than I received). 

Is there any way to avoid the capital gains on that?