Fix csdef file