This type of question is best asked on the mailing list, where it can be
seen by many more people.


I'm not sure what your code is trying to do and I'm not familiar with the
(third-party?) components you are using.