Fixed writing back to race number file