fix trigger error