Fix minor issues with minute generation script.