fix ram bug

fix