fix bakefile_gen