fix all the errors but not bugs