There is a precision issue on 64-bit architecture machines, adding a quick workarount to avoid division by zero