Fixed key permissions regression in 4.1.1