fix all the errors