Fixed work bugs.