Fixed a small problem in ram normalization.