correct for long integer calculation (should prevent unwanted shutdowns)