Use %1 again instead of listing TMP as an input with constraint "1".