Fixed bug in triggerun