FIXING ERRORS