My suggestion above works; if you do not want to implement it, then I cannot help you.
Can you post your code as it actually is? Because the code you posted above does not make sense..
Can you post your code as it actually is? Because the code you posted above does not make sense..
..