Fixed a bug with declsecurity