@reebs Depending on how nice your boss is, maybe you could talk to them and come to a mutual agreement to have the 2-months shortened to a one-month notice. That way, you won't have to pay.
Maybe try to be diplomatic. You could say something along the lines of, hey actually I am free to leave...