Fixed syntax error in triggers