Fixed bugs with lighting and a precompq crash