Have a look at this thread - maybe it applies to your situation and you can try provided fixed version