Fixed bug that was causing segmentation violations for all-black scenes