fix for when no metadata is given