Fixed some silly bugs.