fixed bug for purple light