[FIX] Fixed divide by zero bug.