trigger code fixes