Fixed bug in RAID handling