It should all come out in the wash - you should get credit for the $500, even if you can't presently put it into your pocket. As you have determined that it is not economically reasonable to bring a motion for the return of the money, I don't think there's a viable remedy here. Is that what your lawyer told you?

