Of course your amendments can't go against the original Treaties. And to assure that, there is judicial control. It's pretty common in any country that has a constitution (or any set of laws that are considered above normal laws)