When you terminated the contract with the university, your H-1b was invalid. If you go back to the university, you need apply a new H-1b.