btw, the error tells you that it is in the effect-file, which you didnt post.

6.22 is not the best choice for what you are doing