Corrected data type of finishFlag