SX40 manual focus issue.
You will have very limited depth of field at high focal lengths and wide apertures.
This will allow you to get the focus on what you want through the fence.
You may have to do some manual settings and also use manual focus.
You may need to be at f4 or wider to get what you want.
Hope this helps.