correction for court_id count from 1 not 0