To avoid paying a dividend on borrowed and shorted shares, you should buy back the shares no later than the day before the ex-dividend date. If you are still in a short position on the ex-date you will pay the dividend on the borrowed shares.
Good info unless of course if there is no value there..