hot fix Number of Periods and 50k query error