Update save_variation_meta function

Fix for #555.