Country avoids another constitutional crisis