Fix a few divide by zero and objective calls