Include closed issues list when calculating max id. Closed #2