long int conversion fix