Fixed error when weight not available