Make sure initialize the partition number

Change-Id: I69e78050e633f781ad6a070bf14c8cd8ea00a7a2