wip: fix divide by zero error)