Before the principal case is completed, the judge or the tribunal can revoke or reform the decree or interlocutory sentence for a just reason either at the request of a party or ex officio after the parties have been heard.
Source: Code of Canon Law (Vatican.va)