This does not contain enough actual code to diagnose whatever might be the issue (and from the description I really cannot say what might be the issue either).