fix trigger error location