fix multiple minors bug in api