Good question. Unless the terms of the initial sentencing hadÂ an expressÂ provision for a subsequent modification by the court, the court should not be able to change the terms of the sentence that you received assuming you have upheld the end of your agreement.If there has been a change on the sentencing agreement, you need to carefully review its terms and conditions to see if the court was allowed to do what it did. If not, I would consult with a criminal defense attorney.Good luck.