RAID fix. Buggy but wotrking