fix bug that bci invocation always fails