fixed errors on null values length and weight