solved weight attribute parsing  bug