Fixed bug that was overwriting density scan in parallel.