Fixed stupid divide by zero bug