post/pre triggers bugfix