Fixed a bug with light proc