Can you format your code example correctly ?
This will be easier for us to run the example and see what is happening.