long int fix from Nelson Beebe