Why can my package not keep locally visible?

In reply to Louie Tong:
You need to show us the code used to determine which handle you have. Where is it?