Fixed several light bugs.