fix the errors