Fix error location