Please take a look at the following thread -:
One issue I see is that you have not defined the correct thing type for the thing.