Fixed some bugs and made distributed disks to memory work