fix statement scalingVector = 0 is not allowed!