Fixed trivial bugs.