fixed trigger creation issue