Solved important bug regarding the computation and storage of cell moments