fix bcl bug