Fixed variable-bug in calc trigger