fix graph bug, allow zero value