The regime permitted nominal political dissent, and, in 1947, agreed to elections, hoping to mollify both the United States and local opponents, but quickly deposed the winning candidate in a coup d'état that brought strong disapproval from the U.S. Government. Under a new constitution, an assembly-appointed president, and a strong anti-communist stance relations improved. Nevertheless, Somoza Garcia was the true power behind the curtain and an increasing target of attempted coups and assassination; he even raised a personal bodyguard separated from the rest of the National Guard and had the constitution amended to allow him to run for yet another term in 1955. In January of that same year, Somoza Garcia, in collusion with the dictator of the Dominican Republic Rafael Trujillo, supported an unsuccessful invasion of Costa Rica from Nicaragua by exiled supporters of former President Rafael Calderón Guardia, with the Nicaraguan National guard providing air cover to the operation.