Fixed new bug with create_bag_from_globals().