fix bug with 0 values