Fixed the secured variables not being used