fix divided by zero buy