Fixed _trigger middleware when theres no callback defined