correction of getById