Corrected a few bugs in sigma_cube.py