Fixed bug that caused 'Divide by 0' on 32-bit systems.