fixed mem problem with the light pruner