fix all bugs.