Fixed error where triggers would result in an error when actually triggered