-Fixed bug in ram
Fixed more bugs