Fixed bugs in RLE code. Loading now works