Use trunc() instead of -2 for scale filter as -2 is a recent feature