Fixing a bug on the get_metadata method of the CHAOS Client.