bug fixed. rms fixed.