Generation of FLAT schedule bug fixed