The US government kept an eye on the situation and became worried when the war broke out. Their main worry was Calderon's alliance with the communists, and the civil war had begun a little over a month after the 1948 Czechoslovak coup, which made the US more worried. The US government also disliked Figueres, but would step in to help him indirectly, in order to destroy the influence of the communists. First, the US put the troops on the Panama canal on high alert to stop the communists in case they seized power, though they never invaded. Second, and more importantly, while the Republicans were allied with the communists, they received assistance from right wing Nicaraguan dictator Anastascio Somoza Garcia, so the United States forced Somoza to stop supporting them. Thirdly the rebels received help from left wing Guatemalan president Juan Jose Arevalo, and when the Costa Rican government took the issue to the UN, the US stopped the issue from being addressed. With this on April 24 the war ended with Figueres' rebels taking victory. A Constitutional assembly was elected, a new Constitution was enacted, and full democracy returned with the Second Costa Rican Republic.