Key loading error fix