i think i fixed the error location bugs.