Fix commit api