fixed 0-value error