Fixing bug with placement of SECRETS loading