Fixed division by zero bug
version 1.7