Fixed len bug in rationorm.py