Proper power failure fix