Actually i tried it in 9940 back then, but the same error. And the rewriite version is working thank you! :)
Well, I'm glad the rewrite's working!