fixed small issue with last secure_key fix