fixed bug with zero value