Z-Value colour bug

Certain Z-values of this engine exhaust animation caused it to turn black. (Specifically, it was any Z-value from 0.40 to 0.96).

Same issue again, this time with the little light widgets.
image