When updating multiple currencies only the last one is updated

This fix will prevent incorrect behavior.