Fix for security key parsing