attempted lightmapping, fixed a small error