Fixing some bug in RAM8.