fixed trigger bug introduced with commit b22beba