Fix derp in optimizations