fixed generate file