fixed the bug of secrets not available