Could you reduce your code and post it here directly? Try to narrow it down so there is nothing redundant.