Readded lights and the updatelength function to (hopefully) fix them.