fixed trigger error