Fixed bugs.