Fix a bug in load_metadata() with precision