Fixes divide by zero