Minor memory fix and draw distance