Change int to long - now runs as expected