fix authd keys write