Fixed bug in triggers