Fix unable to find partition size for metadata