fixed divison by zero