Fixed the _secure() calling in some functions