Fix / by 0 exception