Fixed subtle bug that was causing fireflies.