Fixed partition bug