fixed issue where triggers are being inappropriately enabled