bugfix duplicate columns in triggers