fixed bug in delete race api call