Added a check to ignore comment elements when looking generating scaling information. Previously fatal error.