Solved a Bug with generated partitions maps. The code could generate partition maps with the latest partition empty. Workarround implemented to ensure that all partitions has some data.