Fix partition start/size calculations