div by 0 bug fix on first empty start