fix for setsecret