fix bug in entrypoint of cli tool