Fixed partition read code.