Fix to error trigger